﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SystemUpdatesCore.Client
{
    public interface IClient
    {
        /// <summary>
        /// 客户端存储配置
        /// </summary>
        ClientUrlMode ClientUrl { get; set; }

        /// <summary>
        /// 获取本地版本信息，如果未获取到返回null
        /// </summary>
        /// <param name="clienUrl"></param>
        /// <returns></returns>
        Task<ClientVersionModel> GetVersion(ClientUrlMode clienUrl);

        /// <summary>
        /// 保存新版本到本地
        /// </summary>
        /// <param name="clienUrl"></param>
        /// <param name="clientVersion"></param>
        /// <returns></returns>
        Task SaveVersion(ClientUrlMode clienUrl, ClientVersionModel clientVersion);

    }



 

  
}
